
***********************************************************************************************************************
**** Table 2: Summary Stats of the Implementation *********************************************************************
***********************************************************************************************************************
use "$data/Non_payment_dataset_ready.dta" , clear

log using "$filepath/output_logs/table 2", replace

tab completed itt if t==12 & itt!=., col // Take-up rates
tab SMS_Statuscoded itt if t>=14 & t<=22 & itt!=., col // Delivery of text messages
tab attritionrate itt if t==12 & itt!=., col chi // attrition rates not significantly different


** Checking for differential attrition
foreach var in paymentw paymentcondw invoicesw prepaidcounttotal preclosingbalancew preage_of_account {
reg `var' i.itt if everattrited==1 & t<=12, vce(cluster customer)
}

tab reliable itt if t==12 & itt!=., col // common commitments self-concept treatment
tab how itt if t==12 & itt!=., col // common commitments plan treatment
tab when itt if t==12 & itt!=., col // plans to pay in october
tab lang itt if t==12 & itt!=., col // call in oshiwambo

log close
